<?php


namespace App\Api\Models;


use Illuminate\Database\Eloquent\Model;

class SeckillOrder extends Model
{
    protected $table='cmc_seckill_orders';

    //生成订单表
    static public function addOrder($orderdata)
    {
        return SeckillOrder::insert($orderdata);
    }
    //查询订单表
    static public function getOrder($uid)
    {
        return SeckillOrder::where('uid',$uid)->get()->toArray();
    }

}